﻿using lingopen.Application;
using lingopen.AutoMapper;
using lingopen.Entity;
using lingopen.Entity.EPC;
using lingopen.Entity.System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lingopen.Application.Jabil
{
    public class EPC_BandingInput : ValidationModel
    {
        public string Request_ID { get; set; }
        [RequiredAttribute(ErrorMessage = "产品码不能为空")]
        public string Prod_Code { get; set; }
        [RequiredAttribute(ErrorMessage = "治具码不能为空")]
        public string Tool_Code { get; set; }
        [RequiredAttribute(ErrorMessage = "工作站类型不能为空")]
        public string Station_Type { get; set; }

    }

    [MapToType(typeof(EPC_Banding))]
    public class Add_EPC_Banding : EPC_BandingInput
    {
        public string CreateUserId { get; set; }
    }

    [MapToType(typeof(EPC_Banding))]
    public class Update_EPC_Banding : EPC_BandingInput
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
